package com.zxy.springboot_goods.service.impl;

import com.zxy.springboot_goods.entity.Goods;
import com.zxy.springboot_goods.mapper.GoodsMapper;
import com.zxy.springboot_goods.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lenovo
 * @since 2021-11-01
 * 接口的实现层
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    @Autowired
    private GoodsMapper goodsMapper;
    /*查询列表*/
    @Override
    public List<Goods> getGoods(Goods goods) {
        List<Goods> list = goodsMapper.getGoods(goods);
        return list;
    }
}
